<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Title</title>
	</head>
	<body>
		<div id="app">
			<!-- 遍历数组 -->
			<ul>
				<li v-for="item in names">
					{{item}}
				</li>
			</ul>
			<!-- 带索引 -->
			<ul>
				<li v-for="(item,index) in names">
					{{index+1}}-{{item}}
				</li>
			</ul>
		</div>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			const app =new Vue({
				el:'#app',
				data:{
					names:[
					'lion',
					'Lee',
					'jing',
					'loo'
					]
				},
			})
		</script>
		
	</body>
</html>
